use a PWM output instead of a simple on/off output. This will ignorethe 'output', 'output_ms' and 'active' settings and use thedevice.buzzer_gpio instead.
bool use_pwm = 7;